<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page isELIgnored="false" %>

<!--左部快捷菜单-->
      <div id="wt_left_list" >
      	<div class="wt_ch_menu">
  <ul class="wt_ch_main">
    <li class="wt_ch_main_li">
      <a class="wt_ch_txt" name="#wt_ch_tab1" href="/list.htm" target="wt_childIframe1">
      	<div class="wt_ch_opener"></div>
      	<div class="wt_ch_pic wt_ch_pic1" title="1"></div>
      	<span>组件一</span>
      </a>
      <ul class="wt_ch_sub wt_ch_hideSub">
         <li class="wt_ch_sub_li"><a href="/button.htm" target="wt_childIframe1"><span class="wt_ch_hover"></span><span class="wt_ch_font">按钮控件</span></a></li>
        <li class="wt_ch_sub_li"><a href="/table.htm" target="wt_childIframe1"><span class="wt_ch_hover"></span><span class="wt_ch_font">表格控件</span></a></li>
        <li class="wt_ch_sub_li"><a href="/dialog.htm" target="wt_childIframe1"><span class="wt_ch_hover"></span><span class="wt_ch_font">对话框组件</span></a></li>
        <li class="wt_ch_sub_li"><a href="/calendar.htm" target="wt_childIframe1"><span class="wt_ch_hover"></span><span class="wt_ch_font">日历组件</span></a></li>
      </ul>
      <div class="clear"></div>
    </li>
    <li class="wt_ch_main_li">     
      <a class="wt_ch_txt" name="#wt_ch_tab2" href="/kit.htm" target="wt_childIframe1">
      	<div class="wt_ch_opener"></div>
        <div class="wt_ch_pic wt_ch_pic2" title="2"></div>
      	<span>组件二</span>
      </a>
      <ul class="wt_ch_sub wt_ch_hideSub">
        <li class="wt_ch_sub_li"><a href="/validator.htm" target="wt_childIframe1"><span class="wt_ch_hover"></span><span class="wt_ch_font">表单验证</span></a></li>
         <li class="wt_ch_sub_li"><a href="/list.htm" target="wt_childIframe1"><span class="wt_ch_hover"></span><span class="wt_ch_font">我的上传sub</span></a></li>
         <li class="wt_ch_sub_li"><a href="/frame.htm" target="wt_childIframe1"><span class="wt_ch_hover"></span><span class="wt_ch_font">我的上传sub</span></a></li>
         <li class="wt_ch_sub_li"><a href="/kit.htm" target="wt_childIframe1"><span class="wt_ch_hover"></span><span class="wt_ch_font">我的上传sub</span></a></li>
      </ul>
    </li>
    <li class="wt_ch_main_li">
      <a class="wt_ch_txt" name="#wt_ch_tab3" href="/frame.htm"  target="wt_childIframe1">
        <div class="wt_ch_opener"></div>
        <div class="wt_ch_pic wt_ch_pic3" title="3"></div>
      	<span>网络课件</span>
      </a>
      <ul class="wt_ch_sub wt_ch_hideSub">
         <li class="wt_ch_sub_li"><a href="/kit.htm" target="wt_childIframe1"><span class="wt_ch_hover"></span><span class="wt_ch_font">我的上传sub</span></a></li>
         <li class="wt_ch_sub_li"><a href="/kit.htm" target="wt_childIframe1"><span class="wt_ch_hover"></span><span class="wt_ch_font">我的上传sub</span></a></li>
         <li class="wt_ch_sub_li"><a href="/kit.htm" target="wt_childIframe1"><span class="wt_ch_hover"></span><span class="wt_ch_font">我的上传sub</span></a></li>
         <li class="wt_ch_sub_li"><a href="/kit.htm" target="wt_childIframe1"><span class="wt_ch_hover"></span><span class="wt_ch_font">我的上传sub</span></a></li>
      </ul>
    </li>
    <li class="wt_ch_main_li">
      
      <a class="wt_ch_txt" name="#wt_ch_tab4" href="/kit.htm" target="wt_childIframe1">
        <div class="wt_ch_opener"></div>
        <div class="wt_ch_pic wt_ch_pic4" title="4"></div>
      	精品课程
      </a>
      <ul class="wt_ch_sub wt_ch_hideSub">
         <li class="wt_ch_sub_li"><a href="/kit.htm" target="wt_childIframe1"><span class="wt_ch_hover"></span><span class="wt_ch_font">我的上传sub</span></a></li>
         <li class="wt_ch_sub_li"><a href="/kit.htm" target="wt_childIframe1"><span class="wt_ch_hover"></span><span class="wt_ch_font">我的上传sub</span></a></li>
         <li class="wt_ch_sub_li"><a href="/kit.htm" target="wt_childIframe1"><span class="wt_ch_hover"></span><span class="wt_ch_font">我的上传sub</span></a></li>
         <li class="wt_ch_sub_li"><a href="/kit.htm" target="wt_childIframe1"><span class="wt_ch_hover"></span><span class="wt_ch_font">我的上传sub</span></a></li>
      </ul>
    </li>
    <li class="wt_ch_main_li">
      <a class="wt_ch_txt" name="#wt_ch_tab5" target="wt_childIframe1">
      	<div class="wt_ch_opener"></div>
        <div class="wt_ch_pic wt_ch_pic5" href="/list.htm" title="5"></div>
      	模拟考试
      </a>
      <ul class="wt_ch_sub wt_ch_hideSub">
         <li class="wt_ch_sub_li"><a href="/kit.htm" target="wt_childIframe1">我的上传sub</a></li>
         <li class="wt_ch_sub_li"><a href="/kit.htm" target="wt_childIframe1">我的上传sub</a></li>
         <li class="wt_ch_sub_li"><a href="/kit.htm" target="wt_childIframe1">我的上传sub</a></li>
         <li class="wt_ch_sub_li"><a href="/kit.htm" target="wt_childIframe1">我的上传sub</a></li>
      </ul>
    </li>
    <li class="wt_ch_main_li">
      <a class="wt_ch_txt" name="#wt_ch_tab6" target="wt_childIframe1">
        <div class="wt_ch_opener"></div>
        <div class="wt_ch_pic wt_ch_pic6" title="6"></div>
      	专题培训
      </a>
      <ul class="wt_ch_sub wt_ch_hideSub">
         <li class="wt_ch_sub_li"><a href="/kit.htm" target="wt_childIframe1">我的上传sub</a></li>
         <li class="wt_ch_sub_li"><a href="/kit.htm" target="wt_childIframe1">我的上传sub</a></li>
         <li class="wt_ch_sub_li"><a href="/kit.htm" target="wt_childIframe1">我的上传sub</a></li>
         <li class="wt_ch_sub_li"><a href="/kit.htm" target="wt_childIframe1">我的上传sub</a></li>
      </ul>
    </li>
  </ul>
		</div>
      </div><!--wt_left_list 左部菜单-->
      
      <!--右部iframe内容-->

      <div id="wt_right_contant" >
      <!--初始设置默认页面-->
      	<iframe class="wt_mainFrame"  id="wt_childIframe" onload="iFrameHeight()" name="wt_childIframe1" frameborder="0" scrolling="auto" src="/frame.htm"></iframe>
<!-- 		<script type="text/javascript" language="javascript"> 
			$(document).ready(function(){
			
				var initWidth=document.body.scrollWidth-230;
				var initHeight=document.body.scrollHeight-173;
				  $("iframe").css("width",initWidth);//初始设置iframe宽度
				  $("iframe").css("height",initHeight);//初始设置iframe高度
				var ifm= document.getElementById("wt_childIframe"); 
				var subWeb = document.frames ? document.frames["wt_childIframe"].document : ifm.contentDocument; 
					if(ifm != null && subWeb != null) { 
						if(ifm.offsetHeight > subWeb.body.scrollHeight && subWeb.body.scrollWidth > subWeb.body.scrollWidth ){
						subWeb.body.scrollHeight = ifm.scrollHeight; 
						subWeb.body.scrollWidth = ifm.scrollWidth;
						}
					}
			$(window).resize(function() {
				var resizeWidth=document.body.scrollWidth-230;
				var resizeHeight=document.body.scrollHeight-173;
				  $("iframe").css("width",resizeWidth);
				  $("iframe").css("height",resizeHeight);
				  $(window.frames["wt_childIframe"].document).find("body").css("width",resizeWidth); 
				  $(window.frames["wt_childIframe"].document).find("body").css("height",resizeHeight); 
			
			});
			
			
			});
		</script> -->
 		<script type="text/javascript" language="javascript"> 
		function iFrameHeight() { 
			console.info("%%%%"+"明日");
		var ifm= document.getElementById("wt_childIframe"); 
		var subWeb = document.frames ? document.frames["wt_childIframe"].document : ifm.contentDocument; 
		if(ifm != null && subWeb != null) { 
			console.log(subWeb.body.scrollHeight);
			console.log(subWeb.body.scrollWidth);
			console.log("&&&&&&"+ifm.offsetHeight);
			console.log("&&&&&&"+ifm.offsetWidth);
			if(ifm.offsetHeight > subWeb.body.scrollHeight && subWeb.body.scrollWidth > subWeb.body.scrollWidth ){
			subWeb.body.scrollHeight = ifm.offsetHeight; 
			subWeb.body.scrollWidth = ifm.offsetWidth;
			}
		} 
		} 
		/* window.setInterval("iFrameHeight()", 200); */
		</script>  
      </div><!--wt_right_contant 右部内容-->
